#ifndef CONFIG_H
#define CONFIG_H
#include <QString>
#include <QCryptographicHash>
#include <QSqlQuery>

//
const QString BEFORE_CODE = "WHHCFcom";
const QString AFTER_CODE = "cn_whccf";

// MySql数据库配置信息
const QString DB_DRIVE = "QMYSQL";
const QString DB_HOST_NAME = "192.168.1.45";
const int DB_PORT = 3306;
const QString DB_USER_NAME = "root";
const QString DB_PASSWORD = "123456";
const QString DB_DATABASE_NAME = "testeiot";


// 用户信息
struct UserInfo
{
    int id;
    QString name;
    QString password;
    int auth;
};


// 学生信息
struct StudentInfo
{
    int id;
    QString name;
    int gender;
    int age;
    QString address;
};

#endif // CONFIG_H
